@extends('layouts.prize')
@section('pageTitle', '导入码劵')
@section('content')
<div class="container">
    <form action="/web-api/prize/import-voucher-code" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <input type="hidden" name="prize_id" value="{{ $id }}">
            <input type="file" name="codes" class="form-control" id="voucher_code_file" placeholder="码劵">
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
        <a class="blue-button" id="export" href="/admin/voucher-code-example.csv" target="_blank">下载券码模板</a>
    </form>
</div>
    <style>
        .blue-button, .small-blue-button {
            text-align: center;
            outline: 0;
            display: inline-block;
            padding: 7px 16px;
            color: #fff;
            background-color: #23CCEF;
            border: 1px solid #23CCEF;
            margin: 0 5px;
            font-size: 14px;
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            -ms-border-radius: 4px;
            -o-border-radius: 4px;
            border-radius: 4px;
            min-width: 110px;
        }
        .blue-button:hover,.blue-button:focus, .small-blue-button:hover,a.small-blue-button:focus {
            background-color: #11bfe3;
            color: #FFF;
        }
    </style>
@endsection